#ifndef BACKEND_H
#define BACKEND_H
#include <QProcess>
#include <QDebug>
#include <QDir>
#include <QFile>
#include <QCoreApplication>

class BackupSystem
{
public:
    BackupSystem();
    bool makeBackup(QString fileName,QString dbName,QString user,QString pass);
    bool loadBackup(QString fileName,QString dbName,QString user,QString pass);
    void setPath(QString path);
protected:
      bool load(QString command,QString fileName,QByteArray &output);
      bool save(QString command,QString fileName,QByteArray &output);
      //void saveTestFile(QString str);

      QString path;
};

#endif // BACKEND_H
